import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";


export function listQues(query) {
  return request({
    url: '/store/ques/list',
    method: 'get',
    params: query
  })
}

export function getQues(quesId) {
  return request({
    url: '/store/ques/' +  parseStrEmpty(quesId),
    method: 'get'
  })
}




// 新增岗位
export function addQues(data) {
  return request({
    url: '/store/ques',
    method: 'post',
    data: data
  })
}

// 修改题目
export function updateQues(data) {
  return request({
    url: '/store/ques',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delQues(quesIds) {
  return request({
    url: '/store/ques/' + quesIds,
    method: 'delete'
  })
}
